package cn.tedu.stx_admin.pojo.param;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
public class AdminAddNewParam implements Serializable {
    @NotNull(message = "姓名不能为空")
    @Size(min = 6, max = 15, message = "用户名在6~15位之间")
    private String adminName;
    @NotNull(message = "姓名不能为空")
    @Size(min = 6, message = "密码至少6位")
    private String password;
    private Integer roleId;
}
